package com.fy.fyspace.model.es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

@Data
@Document(indexName = "picture")
public class PictureES {
    @Id
    private Long id;
    @Field(type = FieldType.Keyword)
    private String url;
    @Field(type = FieldType.Text, analyzer = "standard")
    private String name;
    @Field(type = FieldType.Text, analyzer = "standard")
    private String introduction;
    @Field(type = FieldType.Keyword)
    private String category;
    @Field(type = FieldType.Keyword)
    private String tags;
    private Long picSize;
    private Integer picWidth;
    private Integer picHeight;
    private Double picScale;
    private String picFormat;
    private Long userId;
    private Date createTime;
    private Date editTime;
    private Date updateTime;
    private Integer isDelete;
    private Integer reviewStatus;
    private String reviewMessage;
    private Long reviewerId;
    private Date reviewTime;
    private String thumbnailUrl;
    private Long spaceId;
    private Integer isEdit;
    private Long fileSize;
    private Double megapixels;
    private String picColor;
    private String rejectType;
    private Integer likeCount;
    private Integer favoriteCount;
}